import java.util.Scanner;

public class demo11 {
    public static void main(String[] args) {
        //创建扫描器
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入您的取款金额");
        //死循环，直到成功取出
        for (; ; ) {
            //输入取款金额
            int money = sc.nextInt();
            //判断取款金额是否满足条件
            if (money < 100 || money > 10000 || money % 100 != 0) {
                System.out.println("输入错误，请重新输入：");
                //如果不满足重新输入
                continue;
            }
            //取款成功
            System.out.println("请取走您的现金：" + money);
            break;
        }
    }
}